# 字符串
name = "hello world"
print(name.title())
print(name.upper())
print(name.lower())


#  格式化字符串
first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
print(full_name)

print(f"hello {full_name.title()}")


# 制表符和换行符
print("Languages: \nPython\nC\nJavaScript")

# 删除空白
favorite_language = " python "
print(favorite_language.rstrip())
print(favorite_language.lstrip())
print(favorite_language.strip())

# 删除前缀
baidu_url = "https://wwww.baidu.com"
print(baidu_url.removeprefix("https://"))